recursive doubling

递回加倍